From b3c5293807641ef07e8502fa76383913e0867c77 Mon Sep 17 00:00:00 2001 From: "sos22@douglas.cl.cam.ac.uk" Date: Fri, 19 Aug 2005 15:37:37 +0000 Subject: [PATCH] This time, it's fixed. Signed-off-by: Steven Smith, sos22@cam.ac.uk --- .../include/asm-xen/asm-x86_64/hypercall.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h b/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h index e57c54769a..62c0575960 100644 --- a/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h +++ b/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h @@ -502,4 +502,21 @@ HYPERVISOR_set_segment_base( return ret; } +static inline int +HYPERVISOR_vcpu_pickle( + int vcpu, vcpu_guest_context_t *ctxt) +{ + int ret; + unsigned long ign1, ign2; + __asm__ __volatile__ ( + TRAP_INSTR + : "=a" (ret), "=b" (ign1), "=c" (ign2) + : "0" (__HYPERVISOR_sched_op), + "1" (SCHEDOP_vcpu_pickle | (vcpu << SCHEDOP_vcpushift)), + "2" (ctxt) + : "memory" ); + + return ret; +} + #endif /* __HYPERCALL_H__ */ -- 2.30.2